import request from '@/utils/request'

export const getOrderList = (obj) => {
  return request.get('/order/list', {
    params: obj
  })
}

export const getOrderTotal = () => {
  return request.get('/order/todoCounts')
}

export const CancelOrder = (obj) => {
  return request.post('/order/cancel', obj)
}

export const getOrderDetail = (obj) => {
  return request.get('/order/detail', { params: obj })
}
